import { Base } from '../../utils/base.js'

class Home extends Base {
  constructor() {
    super()
  }
  //获取分类信息
  getGoodsCategory(parames, callback){
    let url ="/purchase/goodsCategory/getGoodsCategory";
    this.commonRequest(url, parames, callback);
  }
  //分类商品总数
  getGoodsCategoryCount(parames, callback){
    let url = "/purchase/goodsCategory/getGoodsCategoryCount";
    this.commonRequest(url, parames, callback);
  }

  //门店折扣条件列表
  getRateCondition(parames, callback) {
    let url = "/purchase/goods/rateCondition";
    this.commonRequest(url, parames, callback);
  }

  //门店尺码条件列表
  getSizeCondition(parames, callback) {
    let url = "/purchase/goods/sizeCondition";
    this.commonRequest(url, parames, callback);
  }

  //门店商品列表
  getStockGoodsList(parames, callback){
   let url = "/purchase/goods/getStockGoodsList";
    this.commonRequest(url, parames, callback);
 }

  //获取购物车总数
  getCart(parames, callback) {
    let url = "/purchase/cart/get";
    this.commonRequest(url, parames, callback);
  } 
}
module.exports = {
  Home
}